/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tuitionmanagement.entity;

import java.util.Date;

/**
 *
 * @author XUAN
 */
public class OrderEntity {
    private int orderId;
    private float money;
    private Date feeDate;
    private int invoiceId;
    private int rateId;
    private String lastError;
    
    public OrderEntity(){

    }

    public OrderEntity(int _orderId, float _money, Date _feeDate, int _invoice, int _rateId)
    {
        this.orderId = _orderId;
        this.money = _money;
        this.feeDate = _feeDate;
        this.invoiceId = _invoice;
        this.rateId = _rateId;
    }


    public boolean validate(){
        return true;
    }

    /**
     * @return the orderId
     */
    public int getOrderId() {
        return orderId;
    }

    /**
     * @param orderId the orderId to set
     */
    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    /**
     * @return the money
     */
    public float getMoney() {
        return money;
    }

    /**
     * @param money the money to set
     */
    public void setMoney(float money) {
        this.money = money;
    }

    /**
     * @return the feeDate
     */
    public Date getFeeDate() {
        return feeDate;
    }

    /**
     * @param feeDate the feeDate to set
     */
    public void setFeeDate(Date feeDate) {
        this.feeDate = feeDate;
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }

    /**
     * @return the invoiceId
     */
    public int getInvoiceId() {
        return invoiceId;
    }

    /**
     * @param invoiceId the invoiceId to set
     */
    public void setInvoiceId(int invoiceId) {
        this.invoiceId = invoiceId;
    }

    /**
     * @return the rateId
     */
    public int getRateId() {
        return rateId;
    }

    /**
     * @param rateId the rateId to set
     */
    public void setRateId(int rateId) {
        this.rateId = rateId;
    }

}
